/**
 * Created by brantyan on 14-1-16.
 */




//Template3
angular.module('pony',['lift.pony'])
.controller('PonyCtrl',function ($scope,ponyService){
        $scope.isRevealed=false;
        $scope.onClick = function (){
            ponyService.getBestPony().then(function(pony){
                $scope.isRevealed =true;
                $scope.pony=pony;
            })
        };
        //page onload init
        //$scope.onClick();
    })